package com.liuzihao.authorization.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2023-03-29 21:10
 * @Modified By:
 */
@RestController
public class UserInfoController {

    @RequestMapping("user/info")
    Principal userInfo(Principal principal){
        return principal;
    }

}
